/*
 * dry3.cpp
 *
 *  Created on: 23/06/2011
 *      Author: Yotam and Gilaad
 */
#include <iostream>
using namespace std;

class A {
	public:
	virtual void printError() const{
		cout<<"The value of A"<<endl;
	}
};

class B: public A {
	public:
	void printError() const {
		cout<<"The value of B"<<endl;
	}
};

void f() {
	throw B();
}
